<template>
    <add-practice :id="id" />
</template>

<script>

import AddPractice from '@/views/practice/components/addPractice'

export default {
    components: {AddPractice},
    data() {
        return {
            id: ''
        }
    },
    mounted() {
        const id = this.$route.query.id
        if (id) {
            this.id = id
        }
    },
    activated() {
        const route = this.$route.query
        if (route) {
            this.id = route.id
        }
    },
    deactivated() {
        console.log(2)
    }
}
</script>

